﻿#define _CRT_SECURE_NO_WARNINGS 1
#include "AVLTree.h"
#include <vector>
int main()
{
	vector<pair<int, int>> v = { make_pair(4, 0), make_pair(2, 0), make_pair(6, 0), make_pair(1, 0),
	make_pair(3, 0), make_pair(5, 0), make_pair(15, 0), make_pair(7, 0), make_pair(16, 0), make_pair(14, 0) };
	AVLTree<int, int> a;
	for (auto e : v)
	{
		a.Insert(e);
	}
	a.Inorder();

	//vector<pair<int, int>> v = { {4, 0}, {3, 0}, {2, 0}, {1, 0} };
	//AVLTree<int, int> a;
	//for (auto e : v)
	//{
	//	a.Insert(e);
	//}
	//a.Inorder();
	return 0; 
}